package com.lemon.boot.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户表 数据传输对象
 *
 * @author 李猛
 * @since 2024-02-11
 */
@Getter
@Setter
@ApiModel(value = "用户传输对象")
public class UserDTO extends Page<UserDTO> {

    private static final long serialVersionUID = 1L;

    //主键ID
    @ApiModelProperty(value = "主键ID")
    private Long id;

    //租户ID
    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

    //用户名
    @ApiModelProperty(value = "用户名")
    private String username;

    //密码
    @ApiModelProperty(value = "密码")
    private String password;

    //姓名
    @ApiModelProperty(value = "姓名")
    private String name;

    //手机号
    @ApiModelProperty(value = "手机号")
    private String phone;

    //性别
    @ApiModelProperty(value = "性别")
    private Integer sex;

    //邮箱
    @ApiModelProperty(value = "邮箱")
    private String email;

    //生日
    @ApiModelProperty(value = "生日")
    private LocalDate birthday;

    //头像地址
    @ApiModelProperty(value = "头像地址")
    private String avatar;

    //省ID
    @ApiModelProperty(value = "省ID")
    private Long provinceId;

    //市ID
    @ApiModelProperty(value = "市ID")
    private Long cityId;

    //县ID
    @ApiModelProperty(value = "县ID")
    private Long countyId;

    //地址
    @ApiModelProperty(value = "地址")
    private String address;

    //最后登录的IP
    @ApiModelProperty(value = "最后登录的IP")
    private String lastLoginIp;

    //最后登录的时间
    @ApiModelProperty(value = "最后登录的时间")
    private String lastLoginTime;

    //创建人
    @ApiModelProperty(value = "创建人")
    private String createBy;

    //创建时间
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    //修改人
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    //修改时间
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    //状态 1正常 0异常
    @ApiModelProperty(value = "状态 1正常 0异常")
    private Integer status;

    //删除状态 1是 0否
    @ApiModelProperty(value = "删除状态 1是 0否")
    private Integer deleted;

    //邀请码-注册时使用
    @ApiModelProperty(value = "邀请码-注册时使用")
    @TableField(exist = false)
    private String code;

    //用户ID集合
    @ApiModelProperty(value = "用户ID集合")
    @TableField(exist = false)
    private List<Long> userIdList;

}
